﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EnterpriseFramework.DataAccess;

namespace Test
{
    [Table(Name = "Unit")]
    public class Unit : BaseEntity
    {
        public Unit() { }

        [Column(PK = true, Auto = true, Name = "Unit_ID", DBType = System.Data.DbType.Int32)]
        public int Unit_ID;

        string unit_Name;
        [Column(Name = "Unit_Name", DBType = System.Data.DbType.String)]
        public string Unit_Name
        {
            get { return unit_Name; }
            set
            {
                this.NotifyPropertyChanged("Unit_Name", value);
                unit_Name = value;
            }
        }

        public static Column<int> Col_Unit_ID = new Column<int>("Unit_ID");
        public static Column<string> Col_Unit_Name = new Column<string>("Unit_Name");
    }
}
